import request from '@/utils/request'

// 运费模板列表
export const getExpensesApi = () => {
  return request({
    method: 'get',
    url: '/carriages'
  })
}

// 新增/修改运费模板
export const addReviseApi = () => {
  return request({
    method: 'post',
    url: '/carriages'
  })
}

// 删除运费模板
export const delExpensesApi = (data) => {
  return request({
    method: 'delete',
    url: `/carriages/${data.id}`
  })
}
